﻿using System;
using System.Management.Automation;
using System.Runtime.InteropServices;
using Microsoft.SharePoint.PowerShell;

namespace CodeCounsel.SharePoint2010.DigiD.Cmdlets
{
    [SPCmdlet(RequireLocalFarmExist = true, RequireUserFarmAdmin = true)]
    [Cmdlet(VerbsCommon.Get, "DigiDServiceCmdlet")]
    public class GetDigiDServiceCmdlet : SPCmdlet
    {
        protected override void InternalProcessRecord()
        {
            WriteObject(DigiDService.Local);
        }
    }
}
